﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GesturePreviews.Gestures;

namespace WPFGestures.Gestures
{
    public class SegmentTree
    {
        public static List<string> getFollowUps(List<string> segments)
        {
            if (segments == null || segments.Count == 0)
            {
                // return starting segments
                List<string> lst = new List<string>();
                lst.Add("gcircle");
                lst.Add("gleftcorner");
                lst.Add("grightcorner");
                return lst;
            }

            if (segments.Count == 1)
            {
                if (segments[0] == "gcircle")
                {
                    // return circle segments
                    List<string> lst = new List<string>();
                    lst.Add("gleft");
                    lst.Add("gright");
                    return lst;
                }

                if (segments[0] == "gleftcorner")
                {
                    // return leftcorner segments
                    List<string> lst = new List<string>();
                    lst.Add("gupoverlay");
                    lst.Add("gdownoverlay");
                    return lst;
                }

                if (segments[0] == "grightcorner")
                {
                    // return rightcorner segments
                    List<string> lst = new List<string>();
                    lst.Add("gupphone");
                    lst.Add("gdownphone");
                    return lst;
                }


                
            }
            return new List<string>();
        }
    }
}